import request from '@/utils/request'

// 骑手列表
export function barRiderList(pageParam) {
    return request({
      url: '/gscloud_platform/platform/barRider/page',
      method: 'GET',
      params: pageParam
    })
  }
  //骑手新增
  export function AddbarRider(data) {
    return request({
      url: '/gscloud_platform/platform/barRider/save',
      method: 'POST',
      data: data
    })
  }
  //删除骑手
  export function delbarRider(pageParam) {
    return request({
      url: '/gscloud_platform/platform/barRider/deleteById',
      method: 'DELETE',
      params: pageParam
    })
  }
  export function putStatus(pageParam) {
    return request({
      url: '/gscloud_platform/platform/barRider/updateStatus',
      method: 'PUT',
      params: pageParam
    })
  }
  export function putRider(data) {
    return request({
      url: '/gscloud_platform/platform/barRider/update',
      method: 'PUT',
      data: data
    })
  }
  export function geyIdList(pageParam){
  return request({
    url: '/gscloud_platform/platform/barRiderOrder/page',
    method: 'GET',
    params: pageParam
  })
 }
  